Skip to content

GH-49890: [Dev] Group files under component comment headers in .github/CODEOWNERS#49891

Open
kevingurney wants to merge 4 commits intoapache:mainfrom
mathworks:GH-49890
Open

GH-49890: [Dev] Group files under component comment headers in .github/CODEOWNERS#49891
kevingurney wants to merge 4 commits intoapache:mainfrom
mathworks:GH-49890

Conversation

@kevingurney
Copy link
Copy Markdown
Member

@kevingurney kevingurney commented Apr 28, 2026

Rationale for this change

Based on the feedback shared by @kou in #49811 (comment), we should consider grouping files under component comment headers in .github/CODEOWNERS to improve readability.

We should also add @kevingurney and @sgilmore10 as CODEOWNERS for the MATLAB-related CI file .github/workflows/matlab.yml.

Component(s)

Developer Tools

What changes are included in this PR?

  1. Group files under component comment headers in .github/CODEOWNERS file.
  2. Add @kevingurney and @sgilmore10 as CODEOWNERS for file .github/workflows/matlab.yml.

Are these changes tested?

N/A.

Are there any user-facing changes?

No.

Notes

  1. Thank you @sgilmore10 for your help with this pull request!

…` file.

2. Add `@kevingurney` and `@sgilmore10` as `CODEOWNERS` for file `.github/workflows/matlab.yml`.

Co-authored-by: Sarah Gilmore <sgilmore@mathworks.com>
@kevingurney
Copy link
Copy Markdown
Member Author

Note: @kou - The changes in this PR were adapted from the diff you shared in #49811 (comment). Since there was no explicit license included with this diff, please let us know if you have any concerns regarding the use of this adapted code from a copyright perspective.

@github-actions github-actions Bot added the awaiting committer review Awaiting committer review label Apr 28, 2026
Copy link
Copy Markdown
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me

@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Apr 29, 2026
@kevingurney
Copy link
Copy Markdown
Member Author

+1

@kevingurney
Copy link
Copy Markdown
Member Author

Before I proceed with merging this, @kou do you have any flags regarding my previous comment?

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reorganizes .github/CODEOWNERS to be more readable by grouping paths under component headers, and updates ownership for the MATLAB CI workflow file.

Changes:

  • Group CODEOWNERS entries under component comment headers (C GLib, C++, MATLAB, Python, R, Ruby).
  • Add MATLAB maintainers as CODEOWNERS for .github/workflows/matlab.yml.
  • Move R packaging-tooling patterns into the R section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/CODEOWNERS Outdated
Comment on lines +41 to +42
/matlab/ @kevingurney @kou @sgilmore10
/.github/workflows/matlab.yml @kevingurney @sgilmore10
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/.github/workflows/matlab.yml is currently listed before the broader /.github/ ... rule later in the file. In CODEOWNERS, the last matching pattern wins, so the later /.github/ entry will override this and the MATLAB-specific owners won't be applied. Move the /.github/workflows/matlab.yml rule below the /.github/ rule (or otherwise narrow the /.github/ rule) so it takes precedence for that file.

Copilot uses AI. Check for mistakes.
Comment thread .github/CODEOWNERS Outdated
## Components
# Components

## C Glib
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Component header uses C Glib, but the project consistently refers to this component as C GLib (e.g., .github/workflows/ruby.yml and r/_pkgdown.yml). Consider updating the header capitalization for consistency and searchability.

Suggested change
## C Glib
## C GLib

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

No problem! We can use the diff under Apache-2.0 by the ASF!

Comment thread .github/CODEOWNERS Outdated
@github-actions github-actions Bot added awaiting changes Awaiting changes and removed awaiting merge Awaiting merge labels Apr 30, 2026
Comment thread .github/CODEOWNERS Outdated
kevingurney and others added 2 commits April 30, 2026 09:44
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
@github-actions github-actions Bot added awaiting change review Awaiting change review awaiting changes Awaiting changes and removed awaiting changes Awaiting changes awaiting change review Awaiting change review labels Apr 30, 2026
@kevingurney
Copy link
Copy Markdown
Member Author

+1

No problem! We can use the diff under Apache-2.0 by the ASF!

Thank you for confirming, @kou! My apologies for the oversight - I did not realize that diffs shared were automatically under Apache-2.0 according to the ASF!

@kevingurney
Copy link
Copy Markdown
Member Author

kevingurney commented Apr 30, 2026

After looking more closely at #49891 (comment) and reading https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file, it seems like the location of the pattern /.github/workflows/matlab.yml is problematic here.

My understanding is that /.github/workflows/matlab.yml would have to come after the "more general pattern" of /.github/ in order for the "correct" code owners to be notified.

This doesn't exactly feel ideal since the MATLAB CI pattern will no longer be associated with the MATLAB component header. However, there probably isn't anything we can really do here, so I am going to update this PR to move the MATLAB CI pattern accordingly.

Any flags with this change @kou?

@github-actions github-actions Bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Apr 30, 2026
@kou
Copy link
Copy Markdown
Member

kou commented Apr 30, 2026

My apologies for the oversight - I did not realize that diffs shared were automatically under Apache-2.0 according to the ASF!

Ah, sorry. I should have explained more about this. In general, diffs in comment aren't licensed under Apache-2.0 by the ASF. The automatic Apache-2.0 by the ASF rule is applied only for my diffs. So your license confirmation process is the right approach!

@kou
Copy link
Copy Markdown
Member

kou commented Apr 30, 2026

My understanding is that /.github/workflows/matlab.yml would have to come after the "more general pattern" of /.github/ in order for the "correct" code owners to be notified.

This doesn't exactly feel ideal since the MATLAB CI pattern will no longer be associated with the MATLAB component header. However, there probably isn't anything we can really do here, so I am going to update this PR to move the MATLAB CI pattern accordingly.

It makes sense.

We'll change

# ...
# Components
# ...
# PR CI and repository files
# ...

to

# ...
# PR CI and repository files
# ...
# Components
# ...

, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting change review Awaiting change review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants